package cn.hxth.cloud.service.service;

import cn.hxth.cloud.api.domain.OrderInfo;
import cn.hxth.cloud.service.commons.config.FeignClientConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value="ORDER-PROVIDER",configuration=FeignClientConfig.class)
@RequestMapping("/order/")
public interface OrderService {
    @PostMapping("insertOrder")
    public  Boolean insertOrder(@RequestBody OrderInfo orderInfo,@RequestParam("mid") String mid) ;
    @PutMapping("updateStatus/{id}")
    public  Boolean updateStatus(OrderInfo orderInfo) ;
}
